/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2022-05-2
 * Time: 下午 18:11
 */
public class Main {
    public static void main(String[] args) {
        Link link = new Link();
        link.addFirst(15);
        link.addFirst(15);
        link.addFirst(15);
       /* link.CreateList();*/
        link.remove(15);
        link.remove(15);
        link.Display();
    }
    public static void main6(String[] args) {
        Link link = new Link();
        link.CreateList();
        link.remove(25);
        link.Display();
        link.remove(43);
        link.Display();
        link.remove(78);
        link.Display();

    }
    public static void main5(String[] args) {
        Link link = new Link();
        link.CreateList();
        link.addIndex(1,99);
        link.addIndex(4,999);
        link.addIndex(10,9999);
        link.Display();
    }
    public static void main4(String[] args) {
        Link link = new Link();
        link.CreateList();
        link.addLast(55);
        link.addLast(66);
        link.addLast(77);
        link.addLast(88);
        link.addLast(99);
        link.Display();

    }
    public static void main3(String[] args) {
        Link link = new Link();
        link.CreateList();
        link.addFirst(88);
        link.addFirst(89);
        link.addFirst(90);
        link.addFirst(91);
        link.Display();
    }
    public static void main2(String[] args) {
        Link link = new Link();
        link.CreateList();
        link.clear();
        link.Display();
    }
    public static void main1(String[] args) {
        Link link = new Link();
        link.CreateList();
        link.Display();
        boolean Fly = link.contains(99);
        System.out.println(Fly);
        System.out.println(link.size());
}
}
